package com.blb.community_admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.community_admin.entity.SysDept;
import com.blb.community_admin.entity.vo.DeptVO;

import java.util.List;

public interface ISysDeptService extends IService<SysDept> {

    //查询部门列表
    List<DeptVO> getDepts();

    /**
     * 按条件查询部门表
     * @param deptName
     * @param status
     * @return
     */
    List<DeptVO> getDeptsByTerm(String deptName,String status);


    /**
     * 根据userId查询部门信息
     * @param userId
     * @return
     */
    SysDept getDeptByuserId(long userId);


}
